package me.mock.ingress;

import android.location.LocationManager;
import de.robv.android.xposed.XC_MethodHook;

public class RequestLocationUpdateRequestHook extends XC_MethodHook
{

	public RequestLocationUpdateRequestHook()
	{
		super(PRIORITY_HIGHEST);
	}

	@Override
	protected void beforeHookedMethod(MethodHookParam param) throws Throwable
	{
		String provider = (String) param.args[0];
		if (!LocationManager.GPS_PROVIDER.equals(provider))
		{
			param.setResult(null);
			return;
		}
	}
}
